package org.kzwl.book.controller.web;

import com.baomidou.mybatisplus.core.metadata.IPage;
import io.swagger.annotations.Api;
import org.kzwl.comm.pojo.ResponseData;
import org.kzwl.comm.pojo.bo.QuerySaveVolunteersSignBO;
import org.kzwl.comm.pojo.bo.VolunteersAuditBO;
import org.kzwl.comm.pojo.bo.VolunteersUserQueryBO;
import org.kzwl.comm.pojo.dto.QuerySaveVolunteersSignDTO;
import org.kzwl.entity.app.CuVolunteersUser;
import org.kzwl.service.web.VolunteersSignService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@Api("报名审核")
@RestController
@RequestMapping("/cu-volunteers-sign")
public class VolunteersSignController {

    @Resource
    VolunteersSignService volunteersSignService;
    /**
     * 查询志愿者报名审核
     * @param querySaveVolunteersSignBO
     * @return
     */
    @PostMapping("/selectPageAll")
    public ResponseData<IPage<QuerySaveVolunteersSignDTO>> selectPageAll(@RequestBody QuerySaveVolunteersSignBO querySaveVolunteersSignBO)
    {
        return volunteersSignService.selectPageAll(querySaveVolunteersSignBO);
    }

    /**
     * 审核志愿者信息
     * @param volunteersAuditBO
     * @return
     */
    @PostMapping("/volunteersAudit")
    public ResponseData<Void> volunteersAudit(@RequestBody VolunteersAuditBO volunteersAuditBO)
    {
        return volunteersSignService.volunteersAudit(volunteersAuditBO);
    }




}
